<!DOCTYPE html>
<html lang="zh-CN"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script src="js/jquery-3.5.1.min.js"></script>
    <link href="layui-v2.6.4/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <link href="layui-v2.6.4/layui/css/modules/code.css" rel="stylesheet" type="text/css"/>
    <script charset="utf-8" src="layui-v2.6.4/layui/layui.js" type="text/javascript"></script>
    <script>
        layui.use('element', function () {
            var element = layui.element;
        });
    </script>
</head>
<body>
<div class="layui-row" style="height: 120px;background: url(/img/title/top.png);background-size: 100% 100%">
    <div class="layui-col-md4">
        <img src="/img/cems_logo.png" style="margin-top:30px;margin-left: 30px" width="350"/>
    </div>
    <div class="layui-col-md8">
        <form action="" class="parent" style="margin: 30px auto 0px auto;">
            <div class="layui-row">
                <input class="layui-col-md8" placeholder="搜索"
                       style="width: 450px;height: 50px;border-radius: 35px 0 0 35px;text-align: center;border: 2px #1c0337 solid;border-right:0 "
                       type="text">
                <input class="layui-col-md4 layui-btn-normal layui-icon"
                       style="width: 60px;height: 50px;border-radius: 0 35px 35px 0;border: 2px #1c0337 solid;border-left:0 "
                       type="submit" value="&#xe615;">
            </div>
        </form>
    </div>
</div>
<div class="layui-fluid layui-row" style="padding: 0;margin: 0">
    <ul class="layui-nav layui-row layui-col-md12" lay-filter="" style="text-align: center;background: #1c0337">
        <li class="layui-nav-item layui-col-md1 layui-col-md-offset1" style="width: 150px; text-align: center;"><a
                href="/">首页</a></li>
        <li class="layui-nav-item layui-col-md1" style="width: 150px; text-align: center;"><a
                th:href="@{/userHome/}+${session.userId}">去发单</a>
        </li>
        <li class="layui-nav-item layui-col-md1" style="width: 150px; text-align: center;"><a href="/toOrderReceiving">去接单</a>
        </li>
        <li class="layui-nav-item layui-col-md1" style="width: 150px; text-align: center;"><a
                href="/tonearpeople">大数据</a></li>

        <li class="layui-nav-item layui-col-md1" style="width: 150px; text-align: center;"><a
                href="/toForumList">社区</a></li>

        <li class="layui-nav-item layui-col-md1" style="width: 150px; text-align: center;"><a
                href="/toNearPeopleInfo">附近的人</a></li>
        <li class="layui-nav-item layui-col-md1" style="width: 150px; text-align: center;">
            <a shiro:guest="">登录</a>
            <dl class="layui-nav-child" shiro:guest=""> <!-- 二级菜单 -->
                <dd><a href="/toUserLogin">用户登录</a></dd>
                <dd><a href="/toadminlogin">管理员登录</a></dd>
            </dl>
            <a shiro:authenticated="" th:text="${session.usPname}"></a>
            <dl class="layui-nav-child" shiro:authenticated=""> <!-- 二级菜单 -->
                <dd><a th:href="@{/userHome/}+${session.userId}">个人中心</a></dd>
                <dd><a href="/userlogOut">退出登录</a></dd>
            </dl>
        </li>
    </ul>
</div>
</body>
</html>